set(LLVM_LINK_COMPONENTS
  DebugInfoCodeView
  DebugInfoMSF
  DebugInfoPDB
  Object
  Support
  )

add_llvm_tool(llvm-pdbdump
  Analyze.cpp
  C13DebugFragmentVisitor.cpp
  CompactTypeDumpVisitor.cpp
  Diff.cpp
  llvm-pdbdump.cpp
  YamlSymbolDumper.cpp
  YamlTypeDumper.cpp
  LinePrinter.cpp
  LLVMOutputStyle.cpp
  PdbYaml.cpp
  PrettyBuiltinDumper.cpp
  PrettyClassDefinitionDumper.cpp
  PrettyClassLayoutGraphicalDumper.cpp
  PrettyCompilandDumper.cpp
  PrettyEnumDumper.cpp
  PrettyExternalSymbolDumper.cpp
  PrettyFunctionDumper.cpp
  PrettyTypeDumper.cpp
  PrettyTypedefDumper.cpp
  PrettyVariableDumper.cpp
  StreamUtil.cpp
  YAMLOutputStyle.cpp
  )

if(LLVM_USE_SANITIZE_COVERAGE)
  add_subdirectory(fuzzer)
endif()
